package com.ssyu.examination.conmmon.entity;

import java.util.Date;

public class SysMenuEntity {

	private int id;
	private String text;
	private int state;
	private String iconCls;
	private String url;
	private int pid;
	private int sort;
	private int opreateUserId;
	private Date operateTime;
	private String memo;

	private String user__name;
	private String p__text;

	public SysMenuEntity() {
		super();
	}

	public SysMenuEntity(int id, String text, int state, String iconCls,
			String url, int pid, int sort, int opreateUserId, Date opreateTime,
			String memo, String user__name, String p__text) {
		super();
		this.id = id;
		this.text = text;
		this.state = state;
		this.iconCls = iconCls;
		this.url = url;
		this.pid = pid;
		this.sort = sort;
		this.opreateUserId = opreateUserId;
		this.operateTime = opreateTime;
		this.memo = memo;
		this.user__name = user__name;
		this.p__text = p__text;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		if (state == 1) {
			return "open";
		} else if (state == 2) {
			return "closed";
		}
		return "失效";
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public int getOpreateUserId() {
		return opreateUserId;
	}

	public void setOpreateUserId(int opreateUserId) {
		this.opreateUserId = opreateUserId;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getUser__name() {
		return user__name;
	}

	public void setUser__name(String user__name) {
		this.user__name = user__name;
	}

	public String getP__text() {
		return p__text;
	}

	public void setP__text(String p__text) {
		this.p__text = p__text;
	}
}
